home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Total Network Tools 2002
/
NextStepPublishing-TotalNetworkTools2002-Win95.iso
/
Archive
/
Web Server
/
Savant.exe
/
disk1
/
data1.cab
/
Perl5
/
perl5
/
lib
/
flush.pl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2001-02-23
|
391 b
|
24 lines
;# Usage: &flush(FILEHANDLE)
;# flushes the named filehandle
;# Usage: &printflush(FILEHANDLE, "prompt: ")
;# prints arguments and flushes filehandle
sub flush {
local($old) = select(shift);
$| = 1;
print "";
$| = 0;
select($old);
}
sub printflush {
local($old) = select(shift);
$| = 1;
print @_;
$| = 0;
select($old);
}
1;